package com.example.demo.service.Impl;

import com.example.demo.dao.EvaluationMapper;
import com.example.demo.pojo.Evaluation;
import com.example.demo.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvaluationServiceImpl implements EvaluationService {
    @Autowired
    private EvaluationMapper evaluationMapper;

    @Override
    public int addEvaluation(Evaluation evaluation) {
        return evaluationMapper.addEvaluation(evaluation);
    }

    @Override
    public List<Evaluation> findByUserid(String userid) {
        return evaluationMapper.findByUserid(userid);
    }
}
